package ch03_oothinking.abstractuse;

/**
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class ABCLevel {
    public static void main(String[] args) {
        A a = new C();
        a.c();
    }

    interface A {
        void a();

        void b();

        void c();
    }

    abstract static class B implements A {
        @Override
        public void a() {
            System.out.println("aa");
        }

        @Override
        public void b() {
            System.out.println("bb");
        }
    }

    static class C extends B {

        @Override
        public void c() {
            System.out.println("cc");
        }
    }
}
